package com.secxiot.provider.narcotic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 医生药品记录
 */
@ApiModel
@Data
@ToString
public class NarcoticDoctorRecordVo {

    @ApiModelProperty(value = "医生记录id", required = true)
    private Long doctorRecordId;

    @ApiModelProperty(value = "用户id", required = true)
    private Long patientUserId;

    @ApiModelProperty(value = "药品Id", required = true)
    private Long drugsId;

    @ApiModelProperty(value = "患者资料Id", required = true)
    private Long patientInfoId;

    @ApiModelProperty(value = "医疗机构Id", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "申请用药记录Id", required = true)
    private Long patientDrugsRecordId;

    @ApiModelProperty(value = "审核医生用户Id", required = true)
    private Long doctorUserId;

    @ApiModelProperty(value = "临床诊断", required = true)
    private String clinicalDiagnosis;

    @ApiModelProperty(value = "处方总量", required = true)
    private Integer doseCount;

    @ApiModelProperty(value = "单位", required = true)
    private Integer unit;

    @ApiModelProperty(value = "单位名称", required = true)
    private String unitName;

    @ApiModelProperty(value = "每次用量", required = true)
    private Integer doseOnce;

    @ApiModelProperty(value = "间隔时间(时间/次)", required = true)
    private Integer hoursOnce;

    @ApiModelProperty(value = "备注", required = false)
    private String remark;

    @ApiModelProperty(value = "拒绝原因", required = false)
    private String refuseReason;

    @ApiModelProperty(value = "审核状态 0 未审核 1 通过  2 拒绝 3 药师拒绝", required = true)
    private Integer isAudit;

    @ApiModelProperty(value = "审核时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    @ApiModelProperty(value = "药品名称", required = false)
    private String drugsName;

    @ApiModelProperty(value = "医院名称", required = false)
    private String hospitalName;

    @ApiModelProperty(value = "用户名称", required = false)
    private String userName;

    @ApiModelProperty(value = "医生手机号码", required = false)
    private String doctorPhone;

    @ApiModelProperty(value = "创建时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
